<!DOCTYPE html>
<html>
	<head>
	<title>Patient Upload Form</title>
		<?php echo link_tag('css/ppharm_popup.css'.'?'.time());?> 
		<?php echo link_tag('css/custom-theme/jquery-ui-1.8.2.custom.css'.'?'.time());?>
		<script type="text/javascript" src="<?php echo base_url().('/js/jquery.min.js');?>"></script>
		<script type="text/javascript" src="<?php echo base_url().('/js/jquery-ui.min.js');?>"></script>
		<script type="text/javascript">
		$(document).ready(function() {	
					$("#_close").click(function() {
							window.opener.location.reload();
							window.close();
							return false;
							});
		});
		
		<?php echo $additional_jquery_javascript; ?>
		</script>

	</head>
	
	<body>
		<h1>Successful Upload</h1>
		<h2>Patients procesed as follows:</h2>
		<h3><?php echo 'Inserted:	'.$insert_count; ?></h3>
		<h3><?php echo 'Updated:	'.$update_count; ?></h3>
		<h3><?php echo 'Skipped:	'.$skipped_count; ?></h3>
		
		
	<button name="close" id="_close" />Close</button>
	</body>
</html>